<template>
<div>
<!--  子组件分页-->
  <van-pagination v-model='page' :total-items='total'
                  :items-per-page='page_size' @change='change'></van-pagination>

</div>
</template>

<script>
export default {
  name: "z_page",
  props:['total','page_size'],
  data(){
    return{
      page:1,
    }
  },
  methods:{
    change(v){
      this.$emit('cpage',v)
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
